package com.woniuxy.controller;

import com.woniuxy.sender.BusinessSender;
import com.woniuxy.sender.DelaySender;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author: 曾令忠
 * @Description:
 * @Date: 2020/7/7 0007-上午 11:31
 */
@RestController
@RequestMapping("/delay")
public class DelayController {
    @Autowired
    DelaySender delaySender;

    @RequestMapping("/send")
    public String send(){
       delaySender.send("come on baby");
        return "success";
    }
}
